﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Text;
using OAKing.Entity.Common;

namespace Web_OAKing.Module.BaseSys
{
    /// <summary>
    /// User 的摘要说明
    /// </summary>
    public class User : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            context.Response.Write(GetAllUser());
        }
        private string GetAllUser()
        {
            B_UserS users = new B_UserS(true);
            string userStr = users.ToJSON();
            StringBuilder stb=new StringBuilder();
            stb.Append(@"{'total':'100','rowstt':");
            stb.Append(userStr);
            stb.Append("}");
            string str = stb.ToString();
            return str;
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}